<!--编辑栏目-->
<div class="dialog_content">
	<form id="info_form" action="{:url('editDo')}" method="post">
	<table width="100%" class="table_form">
		<tr>
			<th width="120">上级栏目 :</th>
			<td>
				<select class="J_cate_select mr10" data-pid="0" data-uri="{:url('ajaxGetchilds')}" data-selected="{$info.spid}"></select>
				<input type="hidden" name="pid" id="J_cate_id" />
			</td>
		</tr>
		<tr>
			<th>栏目名称 :</th>
			<td><input type="text" name="name" id="name" class="input-text" value="{$info.name}" size="30"></td>
		</tr>
		<tr>
			<th>栏目别名 :</th>
			<td>
				<input type="text" name="alias" id="alias" value="{$info.alias}" class="input-text" size="20">
				
                <label><input type="radio" name="aliasRadio" value="2" checked="checked"> 全部拼音</label>&nbsp;&nbsp;
				<label><input type="radio" name="aliasRadio" value="1"> 首字母拼音</label>
			</td>
		</tr>

	    <tr>
			<th>状态 :</th>
			<td>
				<label><input type="radio" name="status" value="1" {if condition="$info.status eq 1"}checked{/if} > 发布</label>&nbsp;&nbsp;
				<label><input type="radio" name="status" value="0" {if condition="$info.status eq 0"}checked{/if} > 待审</label>
			</td>
		</tr>
		<tr>
			<th>SEO 标题 :</th>
			<td><input type="text" name="seo_title" id="seo_title" class="input-text" value="{$info.seo_title}" size="50" style="width:300px;"></td>
		</tr>
		<tr>
			<th>SEO 关键词 :</th>
			<td><input type="text" name="seo_keys" id="seo_keys" class="input-text" value="{$info.seo_keys}" size="50" style="width:300px;"></td>
		</tr>
		<tr>
			<th>SEO 描述 :</th>
			<td><textarea name="seo_desc" style="width:300px; height:50px;">{$info.seo_desc}</textarea></td>
		</tr>
	</table>
	<input type="hidden" name="id" value="{$info.id}" />
	</form>
</div>
<script>
$(function(){
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$("#name").formValidator({onshow:'请填写名称',onfocus:'请填写名称'}).inputValidator({min:1,onerror:'请填写名称'}).defaultPassed();
	
	$('#info_form').ajaxForm({success:complate,dataType:'json'});
	function complate(result){
		if(result.status == 1){
			$.dialog.get(result.dialog).close();
            $.yingloujie.tip({content:result.msg});
            setTimeout(function(){window.location.reload();},1000);
		} else {
			$.yingloujie.tip({content:result.msg, icon:'alert'});
		}
	}
	$('.J_cate_select').cate_select();

});
</script>